﻿using System;
using System.Collections;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Skyworth.CRM.Service.Entity;
using Skyworth.CRM.Common;
using Skyworth.CRM.Service.IDAL;
using Skyworth.CRM.Service.IBLL;

namespace Skyworth.CRM.BLL
{
    public class FunctionBLL : IFunctionBLL
    {
        private IFunctionDAL _functionDAL;

        public FunctionBLL(IFunctionDAL functionDAL)
        {
            _functionDAL = functionDAL;
        }

        public DataTable GetPagesFunction(int pageId)
        {
            return _functionDAL.GetPagesFunction(pageId);
        }

        public DataTable GetAllFunction()
        {
            return _functionDAL.Query("");
        }
    }
}
